package com.campus.merchant.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.campus.common.mybatis.entity.IntegerIdBaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 商户每日收益汇总表
 * </p>
 *
 * @author ZhaoYuJie
 * @since 2025-07-11
 */
@Getter
@Setter
@TableName("merchant_daily_earnings")
@ApiModel(value = "MerchantDailyEarnings对象", description = "商户每日收益汇总表")
public class MerchantDailyEarnings extends IntegerIdBaseEntity<MerchantDailyEarnings> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("商户ID")
    @TableField("merchant_id")
    private Integer merchantId;

    @ApiModelProperty("收益日期（订单完成日期）")
    @TableField("earning_date")
    private LocalDate earningDate;

    @ApiModelProperty("当日完成订单数量")
    @TableField("total_orders")
    private Integer totalOrders;

    @ApiModelProperty("当日总收益金额（元）")
    @TableField("total_earnings")
    private BigDecimal totalEarnings;

    @ApiModelProperty("记录创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("记录更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @Override
    public Serializable pkVal() {
        return null;
    }
}
